package com.cpit.platform.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author SunShiJie
 * @since 2018/7/3
 * server 配置参数
 */
@Component
public class ServerProperties {
    @Value("${server.url}")
    private String serverUrl;

    @Value("${server.port}")
    private String serverPort;

    public String getServerUrl() {
        return serverUrl;
    }

    public void setServerUrl(String serverUrl) {
        this.serverUrl = serverUrl;
    }

    public String getServerPort() {
        return serverPort;
    }

    public void setServerPort(String serverPort) {
        this.serverPort = serverPort;
    }


    @Override
    public String toString() {
        return "ServerProperties{" +
                "serverUrl='" + serverUrl + '\'' +
                ", serverPort='" + serverPort + '\'' +
                '}';
    }
}
